//
//  GGNotificationService.m
//  QuickAskCommunity
//
//  Created by yuemei on 2017/11/17.
//  Copyright © 2017年 ym. All rights reserved.
//

#import "GGNotificationService.h"



@interface GGNotificationService(){
    
    
}

@end

@implementation GGNotificationService
GG_EXPORT_SERVICE(@"notification")

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    if ([systemInfoTools currentDeviceVersion].doubleValue > 8.0) {
        // iOS8以后 本地通知必须注册(获取权限)
        UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert categories:nil];
        
        [application registerUserNotificationSettings:settings];
    }    return YES;
}


@end
